package com.wugh.fast.kernel.util.exception;

import cn.hutool.core.util.StrUtil;
import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;
import com.wugh.fast.kernel.core.exception.FastAbstractException;

/**
 * 说明:
 * 递归异常
 *
 * @author wugh
 * @date 2019/11/29 15:18
 */
public class FastRecursiveException extends FastAbstractException {
    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.FAST_GLOBAL_EXCEPTION;
    }

    public FastRecursiveException(Integer time) {
        super(StrUtil.format("递归异常,递归次数达到{}次", time));
    }
}